<template>
  <div class="UInput">
    <el-input
      @input="input"
      :value="formValue"
      v-bind="$attrs"
    ></el-input>
  </div>
</template>

<script>
export default {
  name: 'UInput',
  props: {
    formValue: {
      type: String | Number,
      default: () => ''
    }
  },
  methods: {
    input(val) {
      this.$emit('update:formValue', val);
    }
  }
};
</script>

<style lang="scss" scoped></style>
